package com.jy.menu.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 使用lombok免set和get
 * @author maran
 *
 */
public class MenuEntity implements Serializable {
	
	private Long id;
	
	private Long p_id;
	
	private String name;
	
	private String path;
	
	private String remarks;
	
	private String type;
	
	private String state;
	
	private String update_author;
	
	private String insert_author;
	
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date update_time;
	
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date insert_time;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getP_id() {
		return p_id;
	}
	public void setP_id(Long p_id) {
		this.p_id = p_id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getUpdate_author() {
		return update_author;
	}
	public void setUpdate_author(String update_author) {
		this.update_author = update_author;
	}
	public String getInsert_author() {
		return insert_author;
	}
	public void setInsert_author(String insert_author) {
		this.insert_author = insert_author;
	}
	public Date getUpdate_time() {
		return update_time;
	}
	
	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}
	public Date getInsert_time() {
		return insert_time;
	}
	public void setInsert_time(Date insert_time) {
		this.insert_time = insert_time;
	}
	public MenuEntity() {
		super();
	}
	public MenuEntity(Long id, Long p_id, String name, String path, String remarks, String type, String state,
			String update_author, String insert_author, Date update_time, Date insert_time) {
		super();
		this.id = id;
		this.p_id = p_id;
		this.name = name;
		this.path = path;
		this.remarks = remarks;
		this.type = type;
		this.state = state;
		this.update_author = update_author;
		this.insert_author = insert_author;
		this.update_time = update_time;
		this.insert_time = insert_time;
	}
}
